package com.pactera.madp.cp.mapper;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pactera.madp.cp.api.entity.employeeWechat.EmployeeDoEntity;
import com.pactera.madp.cp.api.vo.employee.EmployeeDoVO;
import org.apache.ibatis.annotations.Param;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * (CpEmployeeDo)表数据库访问层
 *
 * @author yushen.qi
 * @since 2021-06-29 15:08:45
 */
public interface EmployeeDoMapper extends BaseMapper<EmployeeDoEntity> {

    List<EmployeeDoVO> getInfoDoPage(
            @Param("corpId") Integer corpId,
            @Param("wxUserId") String wxUserId,
            Page page
    );

    List<EmployeeDoEntity> listByTime(@Param("corpId") Integer corpId, @Param("wxUserId") String wxUserId, @Param("wxExternalUserid") String wxExternalUserid, @Param("currentTime") DateTime currentTime);

}

